﻿namespace Core
{
    /// <summary>
    /// XSS Utility
    /// </summary>
    public class XssUtil
    {
        /// <summary>
        /// Gets the safe HTML fragment.
        /// </summary>
        /// <param name="input">The input.</param>
        /// <returns></returns>
        public static string GetSafeHtmlFragment(string input)
        {
            string safeHtml = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(input);

            return safeHtml;
        }
    }
}
